package com.tensai.study.java.utils;

import org.junit.Test;

public class UtilsTest {

	@Test
	public void throwMessageTest() {
		Utils.isTure(true).throwMessage("异常");
	}

	@Test
	public void isTureOrFalseTest() {
		Utils.isTureOrFalse(true)
				.trueOrFalseHandle(() -> System.out.println("true"), () -> System.out.println("false"));
	}

	@Test
	public void isBlankOrNoBlankTest() {
		Utils.isBlankOrNoBlank("msg")
				.presentOrElseHandle(System.out::println, () -> {
					System.out.println("null");
				});
	}
}
